package com.cyy;


import com.cyy.config.SpringConfig;
import com.cyy.dao.BookDao;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author CYY
 * @since 2022/5/17
 */
public class AppAdvice {
    public static void main(String[] args) {
        ApplicationContext ctx = new AnnotationConfigApplicationContext(SpringConfig.class);
        BookDao bookDao = ctx.getBean(BookDao.class);
        String name = bookDao.findName(100,"itcyy");
        System.out.println(name);

    }
}
